
#include <iostream>

class bomb
{
public:

	bomb()
	{
	    std::cout << "bomb created" << std::endl;
		isExploded = 0;
	}

	// Explode the bomb - the bomb can only be exploded once before it needs
	// to be reset
	void explode()
	{
		if (!isExploded)
		{
			std::cout << "BOOM!" << std::endl;
			isExploded = 1;
		} 
		else
		{
			std::cout << "Already exploded, dude" << std::endl;
		}
	}

	void addTimer(int p){timer += p;}
	// Attribute flag to state whether the bomb has been exploded or not
	int isExploded;
	int timer;
};
